#include "bo3d.h"

// Sets a single value constant floating-point parameter to the program. 
BBDECL void __stdcall o_gpu_setNamedConstant(Ogre::GpuProgramParameters* pars, const char* constName, Ogre::Real value)
{
	try
	{
		pars->setNamedConstant(Ogre::String(constName), value);
	}
	catch(Ogre::Exception &e)
	{
		std::cout << e.getDescription() << std::endl;
	}
}

BBDECL void __stdcall o_pass_processPendingPassUpdates(Ogre::Pass* p)
{
	try
	{
		p->processPendingPassUpdates();
	}
	catch(Ogre::Exception &e)
	{
		std::cout << e.getDescription() << std::endl;
	}
}